package com.yixing.demo.mapper;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MessageMapper {
    String getSessionLastMessageBySessionId(Integer sessionId);

    List<String> getSessionHistoryMessageBySessionId(Integer sessionId);

    Integer addMessage(Integer fromId, Integer sessionId, String content);
}
